import request from '@/utils/request'

// 查询客户信息列表
export function listShop(query) {
  return request({
    url: '/member/shop/list',
    method: 'post',
    data: query
  })
}

// 查询客户信息详细
export function getShop(id) {
  return request({
    url: '/member/shop/' + id,
    method: 'get'
  })
}

// 新增客户信息
export function addShop(data) {
  return request({
    url: '/member/shop/add',
    method: 'post',
    data: data
  })
}

// 修改客户信息
export function updateShop(data) {
  return request({
    url: '/member/shop/update',
    method: 'post',
    data: data
  })
}

// 删除客户信息
export function delShop(id) {
  return request({
    url: '/member/shop/delete/' + id,
    method: 'post'
  })
}
